includeTargets << grailsScript("_GrailsWar" )
	
ant.taskdef(name:"deploy",classname:"org.apache.catalina.ant.DeployTask")

target(main: "Deploys the Grails application to Tomcat") {
    depends(parseArguments, war, createConfig)

    deploy(war:warName,
		   url:config.deploy.url,
		   path:serverContextPath,
		   username:config.deploy.user,
		   password:config.deploy.passwd)
}
setDefaultTarget(main)
